﻿@model TJBHJJ.Models.News
@{
    ViewBag.Title = "添加新闻";
    //Layout = "~/Views/Manager/_ViewStart.cshtml";
}
@*<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>*@
@using (Html.BeginForm("News", "Manager", FormMethod.Post))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>添加新闻</legend>
        <div class="editor-field">
            新闻标题：
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>
        <div class="editor-field">
            新闻内容：
            @Html.TextAreaFor(model => model.Content)
            @Html.ValidationMessageFor(model => model.Content)
        </div>
        <div class="editor-field">
            作者：
            @Html.TextBoxFor(model => model.Author)
            @Html.ValidationMessageFor(model => model.Author)
        </div>
        <div class="editor-field">
            是否显示：
            @Html.EditorFor(model => model.IsDisplay)
            @Html.ValidationMessageFor(model => model.IsDisplay)
        </div>
        @*
        <div class="editor-field">
            图片：
            @Html.TextBoxFor(model => model.PicUrl)
            @Html.ValidationMessageFor(model => model.PicUrl)
        </div>*@
        <p>
            <input type="submit" value="添加" />
        </p>
    </fieldset>    
    @Html.ActionLink("返回列表", "NewList")

}
